﻿using OilRigSumoWrestlers.Scenes.Network;
using RaptorEngine;
using RaptorEngine.Components.Drawable;

namespace OilRigSumoWrestlers.Entities.MenuItems
{
    class MultiplayerP2PItem : MenuItem
    {
        public MultiplayerP2PItem(DrawableText selectedText, DrawableText deselectedText)
            : base(selectedText, deselectedText) { }

        public override void Execute()
        {
            GameEngine.Instance.Scene.HideCurrentScene();
            GameEngine.Instance.Scene.StopCurrentScene();
            GameEngine.Instance.Scene.PushScene(new SetupGame(false));
            GameEngine.Instance.Scene.StartCurrentScene();
            GameEngine.Instance.Scene.ShowCurrentScene();
            
        }
    }
}
